package pro.spring.inter;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import pro.spring.model.Usupport;

public interface UsupportMapper {
    int deleteByPrimaryKey(Integer suId);

    int insert(Usupport record);

    int insertSelective(Usupport record);

    Usupport selectByPrimaryKey(Integer suId);

    int updateByPrimaryKeySelective(Usupport record);

    int updateByPrimaryKey(Usupport record);
    
    //得到总条数
    Integer selectCount();
    
    
    //查看某个用户对于某条信息是否已赞
    Usupport selectZan(@Param("uId")Integer uId,@Param("dsId")Integer udis);
    
    //得到总条数 by ds_id
    Integer selectCountBydsId(@Param("dsId")Integer udis);
    
    //分页查询
    List<Usupport> selectListPage(@Param("offset")Integer offset,@Param("pagesize")Integer pagesize);
}